<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    function f1(a){
        return a
    }
    console.log(f1(100))

    //ES6
    let f2=b=>b
    console.log(f2(200))


    function f3(a,b,c){
        return a+b+c
    }
    console.log(f3(10,20,30))

    //ES6
    let f4=(a,b,c)=>a+b+c
    console.log(f4(10,20,30))

    function f5(){
        if(1<2){
            console.log("今天天气不好")
        }else{
            console.log("不知道明天咋样")
        }
    }
    f5()

    //ES6
    f6=()=>{
        if(1<2){
            console.log("今天天气不好")
        }else{
            console.log("不知道明天咋样")
        }
    }
    f6()
</script>
</html>